package com.yao.mapper;

import com.yao.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface UserMapper {
    /**
     * 查找用户
     * @param user
     * @return
     */
//    @Select("select * from user where username = #{username} and password = #{password}")
    User findEqualUser(User user);

    /**
     * 用户注册
     * @param user
     */
    void userRegister(User user);

    /**
     * 修改用户信息
     * @param user
     */
    void changeUserInfo(User user);
}
